package com.ft.turorial.spring.boot.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class MyServletContextListenerByScanWebListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent event) {
		System.out.println(this.getClass()+"->ServletContex销毁");
        System.out.println(this.getClass()+"->"+event.getServletContext().getServerInfo());
	}

	@Override
	public void contextInitialized(ServletContextEvent event) {
		System.out.println(this.getClass()+"->ServletContex初始化");
		System.out.println(this.getClass()+"->"+event.getServletContext().getServerInfo());
	}

}
